N=input().split('-')
print(N[-1]+'-'+N[0]+'-'+N[1])
